package org.csu.code.api.service;

import org.apache.catalina.User;
import org.csu.code.api.common.CommonResponse;
import org.csu.code.api.entity.Account;
import org.csu.code.api.entity.Rent;
import org.csu.code.api.entity.StatusMessage;

import java.util.List;

public interface RentService {
    public CommonResponse<List<Rent>> getRentsByUserId(int userId);

    public CommonResponse<Rent> getRentByRentId(int rentId);

    public CommonResponse<List<Rent>> getRentsByFarmerId(int farmId);

    public CommonResponse<String> rent(Rent rent);

    public CommonResponse<Rent> deleteRent(int rentId);

    public int getNextId(String name);

    public CommonResponse<String> handle(int rentId, StatusMessage statusMessage);
}
